// 检查商户是否存在
class CheckMerchantModel {
  int status;
  Data data;
  String msg;
  String error;

  CheckMerchantModel({this.status, this.data, this.msg, this.error});

  CheckMerchantModel.fromJson(Map<String, dynamic> json) {
    status = json['status'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    msg = json['msg'];
    error = json['error'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['status'] = this.status;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['msg'] = this.msg;
    data['error'] = this.error;
    return data;
  }
}

class Data {
  int iD;
  String createdAt;
  String updatedAt;
  Null deletedAt;
  String name;
  String code;
  String businessLicensePic;
  String permitLicensePic;
  String openLicensePic;
  String legalPersonName;
  String legalPersonContact;
  String legalPersonIdPic;
  String bankName;
  String subBankName;
  String bankAccount;

  Data(
      {this.iD,
      this.createdAt,
      this.updatedAt,
      this.deletedAt,
      this.name,
      this.code,
      this.businessLicensePic,
      this.permitLicensePic,
      this.openLicensePic,
      this.legalPersonName,
      this.legalPersonContact,
      this.legalPersonIdPic,
      this.bankName,
      this.subBankName,
      this.bankAccount});

  Data.fromJson(Map<String, dynamic> json) {
    iD = json['ID'];
    createdAt = json['CreatedAt'];
    updatedAt = json['UpdatedAt'];
    deletedAt = json['DeletedAt'];
    name = json['Name'];
    code = json['Code'];
    businessLicensePic = json['BusinessLicensePic'];
    permitLicensePic = json['PermitLicensePic'];
    openLicensePic = json['OpenLicensePic'];
    legalPersonName = json['LegalPersonName'];
    legalPersonContact = json['LegalPersonContact'];
    legalPersonIdPic = json['LegalPersonIdPic'];
    bankName = json['BankName'];
    subBankName = json['SubBankName'];
    bankAccount = json['BankAccount'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ID'] = this.iD;
    data['CreatedAt'] = this.createdAt;
    data['UpdatedAt'] = this.updatedAt;
    data['DeletedAt'] = this.deletedAt;
    data['Name'] = this.name;
    data['Code'] = this.code;
    data['BusinessLicensePic'] = this.businessLicensePic;
    data['PermitLicensePic'] = this.permitLicensePic;
    data['OpenLicensePic'] = this.openLicensePic;
    data['LegalPersonName'] = this.legalPersonName;
    data['LegalPersonContact'] = this.legalPersonContact;
    data['LegalPersonIdPic'] = this.legalPersonIdPic;
    data['BankName'] = this.bankName;
    data['SubBankName'] = this.subBankName;
    data['BankAccount'] = this.bankAccount;
    return data;
  }
}
